package com.wpf.test01;

public class People {
    private String name;
    private int age =  18;
    private String skill;

    public People(String name, int age, String skill) {
        this.name = name;
        this.age = age;
        this.skill = skill;
    }

    public People() {
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getSkill() {
        return skill;
    }

    public void setSkill(String skill) {
        this.skill = skill;
    }

    public static final String SCHOOL_NAME = "黑马程序员";

    public class Student{
        private int age  = 33;

        void test01(){
            int age = 88;
            System.out.println("学生爱学习 ");
            System.out.println(age);
            System.out.println(this.age);
            System.out.println(People.this.age);
//            System.out.println(age);

        }

        public Student(int age) {
            this.age = age;
        }

        public Student() {
        }

        public int getAge() {
            return age;
        }

        public void setAge(int age) {
            this.age = age;
        }
    }


    public static class Teacher{
        private int age ;
        void test01(){
            System.out.println("老师爱教书 ");
        }

        public Teacher() {
        }

        public Teacher(int age) {
            this.age = age;
        }

        public int getAge() {
            return age;
        }

        public void setAge(int age) {
            this.age = age;
        }
    }
}
